/*
 * WorkersPanel.java
 *
 * Created on March 27, 2008, 11:42 PM
 */

package sheep.view;

import java.awt.Component;
import javax.swing.Box;

/**
 *
 * @author  alexandre
 */
public class WorkersPanel extends javax.swing.JPanel {
  
  /** Creates new form WorkersPanel */
  public WorkersPanel() {
    setOpaque(false);
    initComponents();
  }
  
  /** This method is called from within the constructor to
   * initialize the form.
   * WARNING: Do NOT modify this code. The content of this method is
   * always regenerated by the Form Editor.
   */
  // <editor-fold defaultstate="collapsed" desc="Generated Code">
  private void initComponents() {

    collaborateursPanel = new org.jdesktop.swingx.JXPanel();
    jScrollPane1 = new javax.swing.JScrollPane();
    lstCollaborateurs = new org.jdesktop.swingx.JXList();
    collaborateursBox = Box.createHorizontalStrut(17);

    lstCollaborateurs.setModel(new javax.swing.AbstractListModel() {
      String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
      public int getSize() { return strings.length; }
      public Object getElementAt(int i) { return strings[i]; }
    });
    lstCollaborateurs.setName("lstParticipants"); // NOI18N
    lstCollaborateurs.setOpaque(false);
    jScrollPane1.setViewportView(lstCollaborateurs);

    javax.swing.GroupLayout collaborateursPanelLayout = new javax.swing.GroupLayout(collaborateursPanel);
    collaborateursPanel.setBackground(new java.awt.Color(153, 153, 255));
    collaborateursPanel.setOpaque(false);
    collaborateursPanel.setLayout(new java.awt.BorderLayout());
    //collaborateursPanel.setLayout(collaborateursPanelLayout);
    collaborateursPanelLayout.setHorizontalGroup(
      collaborateursPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      .addGroup(collaborateursPanelLayout.createSequentialGroup()
        .addContainerGap()
        .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 350, Short.MAX_VALUE)
        .addContainerGap())
    );
    collaborateursPanelLayout.setVerticalGroup(
      collaborateursPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      .addGroup(collaborateursPanelLayout.createSequentialGroup()
        .addContainerGap()
        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)
        .addContainerGap(37, Short.MAX_VALUE))
    );

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(
      layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      .addGroup(layout.createSequentialGroup()
        .addComponent(collaborateursPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
    );
    layout.setVerticalGroup(
      layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      .addGroup(layout.createSequentialGroup()
        .addComponent(collaborateursPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        .addContainerGap(114, Short.MAX_VALUE))
    );
  }// </editor-fold>
  
  /**
   * @param args the command line arguments
   */
  public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
      public void run() {
        new WorkersPanel().setVisible(true);
      }
    });
  }
  
  // Variables declaration - do not modify
  private org.jdesktop.swingx.JXPanel collaborateursPanel;
  private javax.swing.JScrollPane jScrollPane1;
  private org.jdesktop.swingx.JXList lstCollaborateurs;
  private Component collaborateursBox;
  // End of variables declaration
  
}
